<include file="public@header" />
</head>
<body>
	<div class="wrap js-check-wrap">
		<ul class="nav nav-tabs">
			<li class="active"><a href="{:url('Ball/index')}">列表</a></li>
			<li><a href="{:url('Ball/add')}">添加</a></li>
		</ul>
        <form class="well form-inline margin-top-20" method="get" action="{:url('Ball/index')}">
            标号:
            <select class="form-control" name="num" id="input-type">
                <option value="0"  {$num=='0' ? 'selected' : ''}>0</option>
                <option value="1"  {$num=='1' ? 'selected' : ''}>1</option>
                <option value="2" {$num=='2' ? 'selected' : ''}>2</option>
                <option value="3" {$num=='3' ? 'selected' : ''}>3</option>
                <option value="4" {$num=='4' ? 'selected' : ''}>4</option>
                <option value="5" {$num=='5' ? 'selected' : ''}>5</option>
                <option value="6" {$num=='6' ? 'selected' : ''}>6</option>
                <option value="7" {$num=='7' ? 'selected' : ''}>7</option>
                <option value="8" {$num=='8' ? 'selected' : ''}>8</option>
                <option value="9" {$num=='9' ? 'selected' : ''}>9</option>
                <option value="10" {$num=='10' ? 'selected' : ''}>10</option>
                <option value="11" {$num=='11' ? 'selected' : ''}>11</option>
                <option value="12" {$num=='12' ? 'selected' : ''}>12</option>
                <option value="13" {$num=='13' ? 'selected' : ''}>13</option>
                <option value="14" {$num=='14' ? 'selected' : ''}>14</option>
                <option value="15" {$num=='15' ? 'selected' : ''}>15</option>
                <option value="16" {$num=='16' ? 'selected' : ''}>16</option>
            </select>
            <input type="submit" class="btn btn-primary" value="搜索" />
            <a class="btn btn-danger" href="{:url('Ball/index')}">清空</a>
        </form>
		<table class="table table-hover table-bordered">
			<thead>
				<tr>
                    <th width="100">日期</th>
                    <th width="100">期号</th>
					<th width="100" style="color: red">red1</th>
					<th width="100" style="color: red">red2</th>
					<th width="100" style="color: red">red3</th>
					<th width="100" style="color: red">red4</th>
					<th width="100" style="color: red">red5</th>
					<th width="100" style="color: red">red6</th>
					<th width="100" style="color: blue">blue</th>

				</tr>
			</thead>
			<tbody>
				<foreach name="data" item="vo">
				<tr>
                    <td>{$vo.num}</td>
                    <td>{$vo.create_time}</td>
					<td style="color: red">{$vo.red1}</td>
					<td style="color: red">{$vo.red2}</td>
					<td style="color: red">{$vo.red3}</td>
					<td style="color: red">{$vo.red4}</td>
					<td style="color: red">{$vo.red5}</td>
					<td style="color: red">{$vo.red6}</td>
					<td style="color: blue">{$vo.blue}</td>
				</tr>
				</foreach>
			</tbody>
		</table>
		<div class="pagination">{$page}</div>
        <div>
            <table class="table table-hover table-bordered">
                <foreach name="group" item="vo">
                    <tr>
                        <td width="100" style="color: blue">{$vo.blue}</td>
                        <td width="100">{$vo.count}</td>
                    </tr>
                </foreach>
            </table>
        </div>
	</div>
	<script src="__STATIC__/js/admin.js"></script>
</body>
</html>